package com.thoughtworks.oo.quantity;

import static com.thoughtworks.oo.quantity.Delimiter.UNIT_DELIMITER;

class BaseUnitFormatter implements Formatter {
    public String format(int amount, LengthUnit unit) {
        return new StringBuffer().append(unit.getBaseAmount(amount)).append(UNIT_DELIMITER).append(unit.getBaseUnit()).toString();
    }
}
